import request from '@/utils/request'
import { transFormValue, transformData } from '@/utils/tools'

//创建询价
export function inquiryCreate(data) {
  return request({
    url: '/inquiry/create' + transFormValue(data),
    method: 'post'
  })
}

//删除询价
export function inquiryDelete(data) {
  return request({
    url: '/inquiry/delete' + transFormValue(data),
    method: 'post'
  })
}

//更新列表
export function inquiryUpdate(data) {
  return request({
    url: '/inquiry/update' + transFormValue(data),
    method: 'post'
  })
}

//询价详情
export function inquiryInfo(data) {
  return request({
    url: '/inquiry/info' + transFormValue(data),
    method: 'post'
  })
}


//询价列表
export function inquiryGetList(data) {
  return request({
    url: '/inquiry/getList' + transFormValue(data),
    method: 'post'
  })
}


//提交申请
export function inquirySubmit(data) {
  return request({
    url: '/inquiry/submit' + transFormValue(data),
    method: 'post'
  })
}


//生成询价单
export function inquiryGenerateDoc(data) {
  return request({
    url: '/inquiry/generateDoc' + transFormValue(data),
    method: 'post'
  })
}


//完成回价
export function inquiryFinish(data) {
  return request({
    url: '/inquiry/finish' + transFormValue(data),
    method: 'post'
  })
}